#include <stdio.h>

int main(void)
{
    char a='k';
    short b=123;
    int c=89;
    long d=99;
    float e=10.1;

    double f=23.0;
    long long j=123;
    unsigned int h=321;  //分别用十进制， 十六进制， 八进制输出

    unsigned short k=56;
    char *ptr="hello";
    char *atr = "open" ;//输出atr指向地址

    printf("%c, %hd, %d, %ld, %f\n", a, b, c, d, e);
    printf("%lf, %lld, %u, %#x, %o\n", f,j, h, h, h);
    printf("%hu, %s, %p\n", k, ptr, atr);

    return 0;
}